package com.cy.controller;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/notice/")
public class NoticeController {
    @PostMapping("/sms/send")
    public String doSendCodeMsg(@RequestBody Map<String,Object> msg){
        System.out.println("msg = " + msg);
        return "send ok";
    }
    @PostMapping("/log/record")
    public String doLoginInfo(@RequestBody Map<String,Object> log){
        System.out.println("notice.log = " + log);
        return "log ok";
    }
}
